<!DOCTYPE html>
<title>Tests that setting preferences on a track-less video element does not crash.</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
    var video = document.createElement('video');
    // Set user preferred languages.
    internals.setUserPreferredLanguages(['jp', 'es-ES', 'en', 'fr']);
    internals.settings.setTextTrackKindUserPreference('captions');

    internals.setUserPreferredLanguages([]);
    internals.settings.setTextTrackKindUserPreference("default");
});
</script>
